package com.lesson6.builder.ex;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/9/30 12:15
 */
public class DanceRobot implements BuildRobot
{
    Robot r;

    public DanceRobot()
    {
        r = new Robot();
    }

    @Override
    public void createHead()
    {
        r.setHead("合金头");
    }

    @Override
    public void createBody()
    {
        r.setBody("合金身体");
    }

    @Override
    public void createFoot()
    {
        r.setFoot("合金腿");
    }

    @Override
    public Robot createRobot()
    {
        return r;
    }
}
